package com.leunpha.mini.net.factory;


import org.apache.http.HttpHost;
import org.apache.http.client.HttpClient;
import org.apache.http.conn.HttpClientConnectionManager;
import org.apache.http.impl.client.HttpClientBuilder;
import org.apache.http.impl.conn.PoolingHttpClientConnectionManager;
import org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager;

/**
 * User: zhoujingjie
 * Date: 14-6-26
 * Time: 下午2:21
 */
public class ClientFactory {
    private static HttpClient client;
    public static HttpClient getInstance(){
        synchronized (ClientFactory.class){
          //  if(client == null){
                client = HttpClientBuilder.create()
                        .build();
          //  }
            return client;
        }

    }
}
